package io.renren.modules.hospital.dao;

import io.renren.modules.hospital.entity.EmrYsInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *
 *
 * @author starry
 * @email 2495646304@qq.com
 * @date 2024-01-29 17:53:47
 */
@Mapper
public interface EmrYsInfoDao extends BaseMapper<EmrYsInfoEntity> {

    /**
     * 根据科室名称查找该科室下的所有医生
     * @return 医生列表
     */
    List<EmrYsInfoEntity> getYsListBySection(String ysSection);

    List<EmrYsInfoEntity> getYsListByYsId(String emrYsId, int start, int size);
    List<EmrYsInfoEntity> getYsListByYsName(String emrYsName, int start, int size);
    List<EmrYsInfoEntity> getYsListByYsPhone(String emrYsPhone, int start, int size);
    List<EmrYsInfoEntity> getYsListByYsSection(String emrYsSection, int start, int size);

}
